/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 运营专题明细Entity
 * @author huanghaiming
 * @version 2017-07-04
 */
public class OperationSubjectDetail extends DataEntity<OperationSubjectDetail> {
	
	private static final long serialVersionUID = 1L;
	private String opesubId;		// 专题Id
	private String opercontentId;		// 内容Id
	private String title;		// 标题
	private String photo;		// 图片
	private String sort;		// 排序
	private String opeSubtitle;//专题标题
	
	public OperationSubjectDetail() {
		super();
	}

	public OperationSubjectDetail(String id){
		super(id);
	}

	@Length(min=0, max=64, message="专题Id长度必须介于 0 和 64 之间")
	public String getOpesubId() {
		return opesubId;
	}

	public void setOpesubId(String opesubId) {
		this.opesubId = opesubId;
	}
	
	public String getOpercontentId() {
		return opercontentId;
	}

	public void setOpercontentId(String opercontentId) {
		this.opercontentId = opercontentId;
	}

	@Length(min=0, max=64, message="标题长度必须介于 0 和 64 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	@Length(min=0, max=255, message="排序长度必须介于 0 和 255 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOpeSubtitle() {
		return opeSubtitle;
	}

	public void setOpeSubtitle(String opeSubtitle) {
		this.opeSubtitle = opeSubtitle;
	}
	
	
}